package com.m.crm.web;

import com.m.crm.dto.BootStrapTableResult;
import com.m.crm.entity.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yugoh on 2017/5/22.
 */
@RestController
@RequestMapping("/permissions")
public class PermissionController {
    /**
     * 获取权限列表
     *
     * @param permission
     * @param offset
     * @param limit
     * @return
     */
    @RequestMapping(method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
    public BootStrapTableResult<Permission> list(Permission permission, Integer offset, Integer limit){
        // TODO
        return null;
    }
}
